home *** CD-ROM | disk | FTP | other *** search
- package com.sun.java.swing.plaf.metal;
-
- import com.sun.java.swing.border.AbstractBorder;
- import java.awt.Component;
- import java.awt.Graphics;
- import java.awt.Insets;
-
- class MetalComboBoxEditor$EditorBorder extends AbstractBorder {
- // $FF: synthetic field
- MetalComboBoxEditor this$0;
-
- public void paintBorder(Component c, Graphics g, int x, int y, int w, int h) {
- g.translate(x, y);
- g.setColor(MetalLookAndFeel.getControlDarkShadow());
- g.drawLine(0, 0, w - 1, 0);
- g.drawLine(0, 0, 0, h - 2);
- g.drawLine(0, h - 2, w - 1, h - 2);
- g.setColor(MetalLookAndFeel.getControlHighlight());
- g.drawLine(1, 1, w - 1, 1);
- g.drawLine(1, 1, 1, h - 1);
- g.drawLine(1, h - 1, w - 1, h - 1);
- g.setColor(MetalLookAndFeel.getControl());
- g.drawLine(1, h - 2, 1, h - 2);
- g.translate(-x, -y);
- }
-
- public Insets getBorderInsets(Component c) {
- return MetalComboBoxEditor.editorBorderInsets;
- }
-
- // $FF: synthetic method
- MetalComboBoxEditor$EditorBorder(MetalComboBoxEditor this$0) {
- this.this$0 = this$0;
- }
- }
-